<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<{if $out_answers['ctitle'] == ""}>
  <title><{$out_answers['title']}></title>
  <{else}>
  <title><{$out_answers['ctitle']}></title>
<{/if}>
<{if $out_answers['ckeyword'] == ""}>
  <meta name="keywords" content="<{$out_answers['tags']}>" />
  <{else}>
  <meta name="keywords" content="<{$out_answers['ckeyword']}>" />
<{/if}>
<{if $out_answers['cdirections'] == ""}>
  <meta name="description" content="<{$out_answers['content']|strip_tags|truncate:200}>">
  <{else}>
  <meta name="description" content="<{$out_answers['cdirections']}>">
<{/if}>
<{include file="header.html"}>
<div id="cont">
  <div id="tban">
    <div id="tban_le">
      <div id="tban_le_01"> <img src="../../tpl/images/nlw_dqbg2.jpg" width="10" height="103" />  </div>
      <div id="tban_le_02">
        <h1>厦门好玩的地方</h1>
        <div id="tban_le_txt">推荐厦门好玩的地方，把网友去过的好玩的地方的经历感触，分享给没去过或正想去的人。</div>
      </div>
      <div id="tban_le_03"><img src="../../tpl/images/nlw_dqbg4.jpg" width="10" height="103" />      </div>
    </div>
    <div id="tban_ri">
      <div id="tban_le_01"> <img src="../../tpl/images/nlw_dqbg2.jpg" width="10" height="103" />  </div>
      <div id="tban_le_02">
        <h1>推荐分类 </h1>
        <div id="tban_le_txt" class="tgray1">厦门周边一日游 厦门周边农家乐 厦门有什么好玩的地方
        </div>
      </div>
      <div id="tban_le_03"><img src="../../tpl/images/nlw_dqbg4.jpg" width="10" height="103" />      </div>
    </div>
  </div>
</div>
<div id="cont">
    <div id="xlzy_tit01"><{$showscenery['title']}><img src="../../tpl/images/nlw_ic5.jpg" width="11" height="11" /><img src="../../tpl/images/nlw_ic5.jpg" width="11" height="11" /><img src="../../tpl/images/nlw_ic5.jpg" width="11" height="11" /><img src="../../tpl/images/nlw_ic5.jpg" width="11" height="11" /><img src="../../tpl/images/nlw_ic5.jpg" width="11" height="11" /><span class=" torange1 t14">8.8分</span></div>
    <div id="xlzy_tit02"><div id="xlzy_tit03"><img src="../../tpl/images/nlw_ic7.gif" width="16" height="16" /></div><div id="xlzy_tit04"><a target="_blank" href="<{spUrl c=youjiinfoform a=add id=$id}>?type=scenery">写游记</a></div><div id="xlzy_tit03"><img src="../../tpl/images/nlw_ic8.gif" width="16" height="16" /></div><div id="xlzy_tit04"><a target="_blank" href="<{spUrl c=commentinfoform a=add id=$id}>?type=scenery">写点评</a></div><div id="xlzy_tit03"><img src="../../tpl/images/nlw_ic9.gif" width="16" height="16" /></div><div id="xlzy_tit04"><a target="_blank" href="<{spUrl c=albuminfoform a=uppic}>?type=scenery&pid=<{$show['id']}>">发照片</a></div></div>
</div>
<div id="cont">
    <div class="xlzy_menu mar_b10">
        <ul class="menu">
            <li><a href="<{spUrl}>scenery/<{$linkid}>.html">主页</a></li>
            <li><a href="<{spUrl}>youji/scenery/<{$linkid}>.html">游记</a></li>
            <li><a href="<{spUrl}>comment/scenery/<{$linkid}>.html">点评</a></li>
            <li><a href="<{spUrl}>photoalbum.html?info=scenery&pid=<{$linkid}>">图片</a></li>
            <li><a href="<{spUrl}>visits/scenery/<{$linkid}>.html">线路</a></li>
            <li><a href="<{spUrl}>ask/scenery/<{$linkid}>.html">论坛</a></li>
            <{if $smarty.session.quser.acl == "GBADMIN"}>
            <li><a target="_blank" href="<{spUrl c=albuminfoform a=add id=$linkid}>?type=scenery">上传相册</a></li>
            <{/if}>
        </ul>
    </div>
</div>
<div id="cont">
  <div class="yjgl_le">
    <div id="d_tit06"><h2><{$out_answers['title']}></h2></div>
<div id="yjgl_lta1">
  <div id="d_bk_t">
    <div id="d_bk_t01"><div class="c1"></div></div>
    <div id="d_bk_t02"><div class="c1"></div></div>
  </div>  
  <div id="jddp_bk2">
    <div id="d_bk3_c03">
     <div class="jddp_cen04">
          <div id="ind_cen04_l" class="h24"></div>
          <div class="jddp_cen04_r">
            <div id="ind_cen04_r01">
              <div id="ind_cen04_r01_l"><span class="tgreen">作者：<{$out_answers['username']}></span></div>
            </div>
            <div id="ind_cen04_r02">
                <{$out_answers['content']}>
            </div>
            <div id="ind_cen04_r03"><img src="../../tpl/images/nlw_ic2.gif" width="16" height="16" align="absmiddle" />1</span>&nbsp;<a href="#ex3button" onclick="javascript:aGo('回复'+'<{$out_answers.username|truncate:14:"...":true}>'+': ','0')">回复</a></div>
          </div>
          </div>
          
    </div>
    
  </div>  
  <div id="d_bk_b" class="mar_b20">
    <div id="d_bk_b01"><div class="c1"></div></div>
    <div id="d_bk_b02"><div class="c1"></div></div>
  </div>
 <!--pinglun-->
    <div id="d_bkgreen_let" class="mar_b10"> <div id="d_bkgreen_let1">回复 </div>
    </div>
    <{foreach item=replyout from=$reply key=enname}>
    <div class="jddp_cen04" style="width:730px;">
        <div id="ind_cen04_l" class="h24"><img src="../../tpl/images/pic2.jpg" width="50" height="50">
        </div>
        <div class="jddp_cen04_r" style="width:630px;">
            <div id="ind_cen04_r01">
                <div id="ind_cen04_r01_l"><span class="tgreen"><a target="_blank" title="<{$replyout.username}>" href="<{spUrl}>reply/info/<{$replyout.id}>.html"><{$replyout.username|truncate:14:"...":true}></a></div>
                <div id="ind_cen04_r01_r"><{$replyout.releasedate|date_format:"%Y-%m-%d %H:%M:%S"}></div>
            </div>
            <div id="ind_cen04_r02"><{$replyout.content|strip_tags|truncate:100:"...":true}><br>
            </div>
            <div id="ind_cen04_r03"><a href="#ex3button" onclick="javascript:aGo('回复'+'<{$replyout.username|truncate:14:"...":true}>'+': ','0')">回复</a></div>
        </div>
    </div>
    <{/foreach}>
    <!--end pinglun-->
 <div style="display:none" class="control-group">
   <label for="req" class="control-label">评论回复人：</label>
   <input type="text" class="input-xlarge" name="replyid" id="replyid" value="0">
   <span></span>
   <label for="req" class="control-label">城市选择：</label>
   <input type="text" class="input-xlarge" name="provinceid" id="provinceid" value="<{$provinceid}>">
   <input type="text" class="input-xlarge" name="cityid" id="cityid" value="<{$cityid}>">
   <span></span>
   <label for="req" class="control-label">发布人：</label>
   <input type="text" class="input-xlarge" name="username" id="username" value="<{$username}>">
   <span></span>
   <label for="req" class="control-label">类型：</label>
   <input type="text" class="input-xlarge" name="types" id="types" value="<{$types}>">
   <span></span>
   <label for="req" class="control-label">关联id：</label>
   <input type="text" class="input-xlarge" name="linkid" id="linkid" value="<{$id}>">
   <span></span>
  <label for="req" class="control-label">用户id：</label>
   <input type="text" class="input-xlarge" name="userid" id="userid" value="<{$userid}>">
   <span></span>
</div>

<div class="control-group">
   <div class="controls">
   <textarea name="content" id="content" style="width:610px;height:250px;visibility:hidden;"><{$content}></textarea>
   <span></span>
  </div>
</div>

<div style="margin-top:10px;" class="form-actions">
    <a id="ex3button" href="javascript:;"><img src="../../../tpl/images/nlw_bt3.gif" width="148" height="36" /></a>
  <input type="hidden" name="id" id="id">
</div>


</div>
  </div>
  <div class="yjgl_ri">
    <div class="yjgl_tit01">
      <div class="tit01l">人气排行</div>
      <div class="tit01r"><img src="../../tpl/images/nlw_more2.gif" /></div>
    </div>
    <div class="yjgl_rbk">
     <div id="yjgl_ph1l">
      <div id="yjgl_ri01"><div id="ind_num1">1</div><div id="yjgl_numt3" class="tgreen">环岛路</div><div id="yjgl_numt4" class="torange1">8.9</div></div>
      <div id="yjgl_ri01"><div id="ind_num1">2</div><div id="yjgl_numt3" class="tgreen">环岛路</div><div id="yjgl_numt4" class="torange1">8.9</div></div>
      <div id="yjgl_ri01"><div id="ind_num1">3</div><div id="yjgl_numt3" class="tgreen">环岛路</div><div id="yjgl_numt4" class="torange1">8.9</div></div>
      <div id="yjgl_ri01"><div id="ind_num2">4</div><div id="yjgl_numt3">环岛路</div><div id="yjgl_numt4" class="tgreen">8.9</div></div>
      <div id="yjgl_ri01"><div id="ind_num2">5</div><div id="yjgl_numt3">环岛路</div><div id="yjgl_numt4" class="tgreen">8.9</div></div>
      <div id="yjgl_ri01"><div id="ind_num2">6</div><div id="yjgl_numt3">环岛路</div><div id="yjgl_numt4" class="tgreen">8.9</div></div>
      <div id="yjgl_ri01"><div id="ind_num2">7</div><div id="yjgl_numt3">环岛路</div><div id="yjgl_numt4" class="tgreen">8.9</div></div>
      <div id="yjgl_ri01"><div id="ind_num2">8</div><div id="yjgl_numt3">环岛路</div><div id="yjgl_numt4" class="tgreen">8.9</div></div>
      <div id="yjgl_ri01"><div id="ind_num2">9</div><div id="yjgl_numt3">环岛路</div><div id="yjgl_numt4" class="tgreen">8.9</div></div>
      <div id="yjgl_ri01"><div id="ind_num2">10</div><div id="yjgl_numt3">环岛路</div><div id="yjgl_numt4" class="tgreen">8.9</div></div>
     </div>
    </div>
    <div class="yjgl_tit01">
      <div class="tit01l">哪玩达人</div>
      <div class="tit01r"><img src="../../tpl/images/nlw_more2.gif" /></div>
    </div>
    <div class="yjgl_rbk">
     <div id="yjgl_ph1l">
      <div id="yjgl_ri01"><div id="ind_num1">1</div><div id="yjgl_numt3" class="tgreen">走兽</div><div id="yjgl_numt4" class="torange1"><img src="../../tpl/images/nlw_ic2.gif" width="16" height="16" align="absmiddle" />&nbsp;89</div></div>
      <div id="yjgl_ri01"><div id="ind_num1">2</div><div id="yjgl_numt3" class="tgreen">环岛路</div><div id="yjgl_numt4" class="torange1"><img src="../../tpl/images/nlw_ic2.gif" width="16" height="16" align="absmiddle" />&nbsp;89</div></div>
      <div id="yjgl_ri01"><div id="ind_num1">3</div><div id="yjgl_numt3" class="tgreen">环岛路</div><div id="yjgl_numt4" class="torange1"><img src="../../tpl/images/nlw_ic2.gif" width="16" height="16" align="absmiddle" />&nbsp;89</div></div>
      <div id="yjgl_ri01"><div id="ind_num2">4</div><div id="yjgl_numt3">环岛路</div><div id="yjgl_numt4" class="tgreen"><img src="../../tpl/images/nlw_ic2.gif" width="16" height="16" align="absmiddle" />&nbsp;89</div></div>
      <div id="yjgl_ri01"><div id="ind_num2">5</div><div id="yjgl_numt3">环岛路</div><div id="yjgl_numt4" class="tgreen"><img src="../../tpl/images/nlw_ic2.gif" width="16" height="16" align="absmiddle" />&nbsp;89</div></div>
      <div id="yjgl_ri01"><div id="ind_num2">6</div><div id="yjgl_numt3">环岛路</div><div id="yjgl_numt4" class="tgreen"><img src="../../tpl/images/nlw_ic2.gif" width="16" height="16" align="absmiddle" />&nbsp;89</div></div>
      <div id="yjgl_ri01"><div id="ind_num2">7</div><div id="yjgl_numt3">环岛路</div><div id="yjgl_numt4" class="tgreen"><img src="../../tpl/images/nlw_ic2.gif" width="16" height="16" align="absmiddle" />&nbsp;89</div></div>
      <div id="yjgl_ri01"><div id="ind_num2">8</div><div id="yjgl_numt3">环岛路</div><div id="yjgl_numt4" class="tgreen"><img src="../../tpl/images/nlw_ic2.gif" width="16" height="16" align="absmiddle" />&nbsp;89</div></div>
      <div id="yjgl_ri01"><div id="ind_num2">9</div><div id="yjgl_numt3">环岛路</div><div id="yjgl_numt4" class="tgreen"><img src="../../tpl/images/nlw_ic2.gif" width="16" height="16" align="absmiddle" />&nbsp;89</div></div>
      <div id="yjgl_ri01"><div id="ind_num2">10</div><div id="yjgl_numt3">环岛路</div><div id="yjgl_numt4" class="tgreen"><img src="../../tpl/images/nlw_ic2.gif" width="16" height="16" align="absmiddle" />&nbsp;89</div></div>
     </div>
  </div>  </div>
</div>

<script type="text/javascript" src="<{$domain}>/tpl/js/jquery-1.7.0.min.js"></script> 
<script src="../../../kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="../../../kindeditor/lang/zh_CN.js"></script>
<script>
 var editor;
      KindEditor.ready(function(K) {
        editor = K.create('textarea[name="content"]', {
          resizeType : 1,
          allowFileManager : true,
          allowPreviewEmoticons : false,
          allowImageUpload : false,
          items : [
            'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
            'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
            'insertunorderedlist', '|', 'emoticons', 'image', 'link']
   });

  K('input[name=getHtml]').click(function(e) {
    alert(editor.html());
  });
  K('input[name=isEmpty]').click(function(e) {
    alert(editor.isEmpty());
  });
  K('input[name=getText]').click(function(e) {
    alert(editor.text());
  });
  K('input[name=selectedHtml]').click(function(e) {
    alert(editor.selectedHtml());
  });
  K('input[name=setHtml]').click(function(e) {
    editor.html('<h3>Hello KindEditor</h3>');
  });
  K('input[name=setText]').click(function(e) {
    editor.text('<h3>Hello KindEditor</h3>');
  });
  K('input[name=insertHtml]').click(function(e) {
    editor.insertHtml('<strong>插入HTML</strong>');
  });
  K('input[name=appendHtml]').click(function(e) {
    editor.appendHtml('<strong>添加HTML</strong>');
  });
  K('input[name=clear]').click(function(e) {
    editor.html('');
  });
});
</script>
<script type="text/javascript">
$(document).ready(function(){ // 当页面加载完毕的时候
    // 例子三
    $("#ex3button").click(function(){ // "提交"按钮被点击
        // 构造发送的数据，请注意如果获取表单各项的值
        var formdata = {
            'id' : $('#id').val(),
            'replyid' : $('#replyid').val(),
            'username' : $('#username').val(),
            'content' : editor.html(),
            'provinceid' : $('#provinceid').val(),
            'cityid' : $('#cityid').val(),
            'types' : $('#types').val(),
            'linkid' : $('#linkid').val(),
            'userid' : $('#userid').val()
        };
        var id  = $('#id').val();  // 根据有没有id 判断是编辑还是增加
        //alert(id);
        if(id == '')
        {
            // 用$.post发送数据
            $.post('<{spUrl c=replyinfoform a=adddata}>', formdata, function(result){
                $('#resulttable').append(result);
                feedback(result,id);
            });
        }
        else
        {
            // 用$.post发送数据
            $.post('<{spUrl c=replyinfoform a=editdata}>', formdata, function(result){
                $('#resulttable').append(result); // 返回的数据直接追加到resulttable表格的后面
                alert(result);
                feedback(result,id);
            }); 
        }
    });
});
</script>
<script>
    function aGo(name,id){
        editor.insertHtml(name);
    }
</script>
<script>
function feedback(result,id){
  if(result != 'false')
  {
    $('.badge').removeClass('badge badge-info').text('');
    var response = eval("("+result+")");
    for(var i in response){
      $('#' + i).next().addClass('badge badge-info');
      $('#' + i).next().text(response[i].toString());
      //console.log(response[i].toString());
    }
    //$('.badge').text('sdfsd');
  }
}
</script>
<{include file="footer.html"}>